<?php
	$css_list[0]['url'] = './tpl/css/dzt_shop.css';
	$js_list[0] = './tpl/js/shop.js';
?>
<!--{template inc/header}-->
<div id="body" class="fm960">
<!--{dynamic getDztShopNewestShare}-->
	<div id="dzt_shop_cat">
		<ul>
			<li><a href="{u shop/index}" class="cat_name {if !$cid }cat_current{/if}">全部</a></li></li>
			<!--{loop $_FANWE['cache']['shops']['root'] $root_id}-->
			<!--{eval $root_cate = $_FANWE['cache']['shops']['all'][$root_id];}-->
			<li><a href="{$root_cate['url']}" class="cat_name{if $root_current || $root_id == $cid} cat_current{/if}">{$root_cate['name']}</a></li>
			<!--{/loop}-->
		</ul>
	
	</div>
	
	<!--{dynamic getDztShopList}-->

	<div>
		<!--{loop $shop_list $shop_item}-->
		<div class="shop_item box_shadow mb10" shopID="{$shop_item['shop_id']}">
		<div class="shop_info clearfix">
			<div class="shop_logo">
				<a href="{$shop_item['url']}">
				<img class="lazyload" src="{$shop_item['shop_logo']}" width="80px" height="80px"></img>
				</a>
			</div>
			<div class="shop_title">
				<h4 class="title"><a href="{$shop_item['url']}">{cutstr $shop_item['shop_name'] 36}</a></h4>
				
				
				<!--{if $shop_item['shop_url_list']['taobao']}-->
				<a href="{$shop_item['shop_url_list']['taobao']}" target="_blank"><span class="dzt_taobao"></span><span class="shop_entry">淘宝入口</span></a>
				<!--{/if}-->
				<!--{if $shop_item['shop_url_list']['paipai']}-->
				<a href="{$shop_item['shop_url_list']['paipai']}" target="_blank"><span class="dzt_paipai"></span><span class="shop_entry">拍拍入口</span></a>
				<!--{/if}-->
				<!--{if $shop_item['shop_url_list']['dangdang']}-->
				<a href="{$shop_item['shop_url_list']['dangdang']}" target="_blank"><span class="dzt_dangdang"></span><span class="shop_entry">当当入口</span></a>
				<!--{/if}-->
			</div>
		</div>
			<!--{if $shop_item['coupon']||$shop_item['activity']}-->
			<div id="shop_coupon_activity">
				<!--{if $shop_item['coupon']}-->
				<div id="shop_coupon">
				<div id="shop_coupon_title">＂抠＂个券儿</div>
				<div id="shop_coupon_list">
					<ul>
						<!--{loop $shop_item['coupon'] $coupon}-->
							<!--{if {$coupon['p']}}-->
							<li>
								<a  href="{$coupon['c']}" target="_blank"><img src="{$coupon['p']}" /></a>
							</li>
							<!--{else}-->
							<li>
								<a href="{$coupon['c']}" target="_blank"></a>
							</li>
							<!--{/if}--> 
						<!--{/loop}-->					
					</ul>
				</div>
				</div>
				<!--{/if}-->
				<!--{if $shop_item['activity']}-->
				<div id="shop_activity">
				<div id="shop_activity_title">店铺活动</div>
				<div id="shop_activity_list">
					<ul>
						<!--{loop $shop_item['activity'] $activity}-->
						<li>{$activity}</li> 
						<!--{/loop}-->
					</ul>
				</div>
				</div>
				<!--{/if}-->			
			</div>
			<!--{/if}-->
			<div class="goods_list">
				<ul>
					<!--{loop $shop_item['items'] $item}-->
					<li>
						<a href="{echo FU('shop/show',array('id'=>$shop_item['shop_id'],'ood'=>$item['share_id']))}" target="_blank">
							{eval $index_img = $share['index_img'];}
							{if $index_img}
							<img class="img" src="{getimg $index_img 200 999 1}"  width="180px" height="180px"/>
							{else}
							<img class="img" src="{getimg $item['imgs'][0]['img'] 200 999 1}"  width="180px" height="180px"/>
							{/if}
						</a>
						<div class="trsp_bg">{$item['imgs'][0]['dzt_discount']}折 </div>
						<div class="dzt_index_price">
						<div class="dzt_index_left_price">
						<span class="dzt_index_price1">{$item['imgs'][0]['price_format1']}</span>
						<span class="dzt_index_price2">{$item['imgs'][0]['price_format2']}</span>
						</div>
						</div>
						<div class="{$item['imgs'][0]['dzt_mall_pic']}"></div>
						<div>{$item['time']}</div>
						<div class="goods_content" >{cutstr $item['content'] 50}</div>
					</li>
					<!--{/loop}-->
				</ul>
				<div class="clear-fix"></div>
			</div>
		</div>
		<!--{/loop}-->
		<div class="clear-fix"></div>
		<!--{if $pager['page_count'] > 1}-->
		<div class="pagination mt20"> 
			<!--{subtemplate inc/pages}--> 
		</div>
		<!--{/if}-->
	</div>
	<div class="clear-fix"></div>
</div>
<!--{if getIsManage('ask')}-->
<script type="text/javascript">
jQuery(function($){
	$('.top_shop_list .shop_item').hover(function(){
		var shopID = this.getAttribute('shopID');
		$.GetManageMenu('shop',shopID,this);
	},function(){});
});
</script>
<!--{/if}-->
<!--{template inc/footer}-->
